<!--suppress ALL-->
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改使用记录')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-storeroomuse-edit" th:object="${storeroomUse}">
            <input name="storeId" th:field="*{storeId}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">记录编号：</label>
                <div class="col-sm-8">
                    <input name="storeId" disabled th:field="*{storeId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">库房名称：</label>
                <div class="col-sm-8">
                    <input name="storeroomName" disabled th:field="*{storeroomName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">规格(个)：</label>
                <div class="col-sm-8">
                    <input name="specification" disabled th:field="*{specification}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">类型：</label>
                <div class="col-sm-8">
                    <select name="storeroomType" disabled class="form-control m-b" th:with="type=${@dict.getType('storeroom_type')}" required>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{storeroomType}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">操作人：</label>
                <div class="col-sm-8">
                    <input name="userName" disabled th:field="*{userName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">操作时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="createTime" disabled th:value="${#dates.format(storeroomUse.createTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">使用状态：</label>
                <div class="col-sm-8">
                    <select name="useStatus" class="form-control m-b" disabled th:with="type=${@dict.getType('storeroom_use_status')}" required>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{useStatus}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">设备名称：</label>
                <div class="col-sm-8">
                    <input name="examinationName" th:field="*{examinationName}" class="form-control" type="text" disabled>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">操作名称：</label>
                <div class="col-sm-8">
                    <select name="operationName" class="form-control m-b" disabled th:with="type=${@dict.getType('storeroom_operation_name')}" required>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{operationName}"></option>
                    </select>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "storeroomuse/storeroomuse";
        $("#form-storeroomuse-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-storeroomuse-edit').serialize());
            }
        }
    </script>
</body>
</html>